package com.pengchuang.ACS.admin.api.feign;

import com.pengchuang.ACS.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "ACS-admin")
public interface UserFeignClient {

    @GetMapping("/api/v1/users/username/{username}")
    R getUserByUsername(@PathVariable String username);

    /**
     * 获取用户详细信息
     */
    @GetMapping("/admin/users/info/{username}")
    R getUserInfoByUsername(@PathVariable String username);

    /**
     * 利用用户id获取用户详细信息
     */
    @GetMapping("/api/v1/users/userId/{userId}")
    R getUserInfoByUserId(@PathVariable Long userId);
}
